//
//  YSSetupInfoRes.m
//  Yueshi
//
//  Created by Northwan on 15/8/19.
//  Copyright (c) 2015年 悦食中国. All rights reserved.
//

#import "YSSetupInfoRes.h"

@implementation YSSetupInfoRes


/**
 *  当从文件中解析出一个对象的时候调用
 *  在这个方法中写清楚：怎么解析文件中的数据
 */
- (id)initWithCoder:(NSCoder *)decoder
{
    if (self = [super init]) {
        self.appUrl = [decoder decodeObjectForKey:@"appUrl"];
        self.appVersion = [decoder decodeObjectForKey:@"appVersion"];
        self.appContent = [decoder decodeObjectForKey:@"appContent"];
        self.appAbout = [decoder decodeObjectForKey:@"appAbout"];
    }
    return self;
}

/**
 *  将对象写入文件的时候调用
 *  在这个方法中写清楚：要存储哪些对象的哪些属性，以及怎样存储属性
 */
- (void)encodeWithCoder:(NSCoder *)encoder
{
    [encoder encodeObject:self.appUrl forKey:@"appUrl"];
    [encoder encodeObject:self.appVersion forKey:@"appVersion"];
    [encoder encodeObject:self.appContent forKey:@"appContent"];
    [encoder encodeObject:self.appAbout forKey:@"appAbout"];
}

@end
